package cate.game.role.task.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTask;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "每日任务活跃度 の 通知")
public class TaskDailyActiveResp implements MsgOutput {
    public TaskDailyActiveResp() {
    }

    @NoteField(value = "当前活跃度")
    public long active;

    public TaskDailyActiveResp(Role role) {
        this.active = role.getTask().daily.getActive();
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTask.DAILY_ACTIVE_RESP;
    }
}
